package com.red.star.wechat.data.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author nofish.yan@gmail.com
 * @date 2018/6/28.
 * 导购蓄客卡收益汇总(导购+蓄客卡)
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_income")
public class Income extends BaseEntity {

    private Integer fansId;

    /**
     * 导购ID
     */
    private Integer employeeId;

    /**
     * 蓄客卡ID
     */
    private Integer storedCardId;

    /**
     * 联盟组ID
     */
    private Integer groupId;

    /**
     * 蓄客卡净收益金额
     */
    private BigDecimal amount;

    /**
     * 状态 0未结算  1结算中  2已结算 3已清零
     */
    private Integer status;

    /**
     * 结算详细
     */
    private Integer settleDetailId;

    /**
     * 蓄客卡收益金额，含退款
     */
    private BigDecimal incomeAmount;

    /**
     * 退款总金额
     */
    private BigDecimal refundAmount;

    /**
     * 该蓄客卡转出（提现）金额
     */
    private BigDecimal transferAmount;

    public Income(Integer fansId, Integer employeeId, Integer storedCardId, Integer groupId, Integer status) {
        this.fansId = fansId;
        this.employeeId = employeeId;
        this.storedCardId = storedCardId;
        this.groupId = groupId;
        this.status = status;
    }
}
